<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>ASAA-GGC</title>
<style type="text/css">@import"style.css";</style>
<link rel="stylesheet" href="gray.css" type="text/css" title="gray">
<link rel="alternate stylesheet" type="text/css" href="red.css" title="red">
<link rel="alternate stylesheet" type="text/css" href="blue.css" title="blue">
<link rel="alternate stylesheet" type="text/css" href="orange.css" title="orange">
<script type="text/javascript" src="styleswitcher.js"></script>
</head>


<body>
<div class="main">

<div class="header">


		<h2></h2>


			<ul>
				<li> <a href="index.jsp">Home</a> </li>
				<li> <a href="#">My Profile</a> </li>
				<li> <a href="#">My Calendar</a> </li>
				<li> <a href="myGroup.jsp">My Groups</a> </li>
			</ul>


</div>


<div id="content">

<h3>WELCOME, Scott! (<a href="#">Logout</a>)
<div id="colorchange">
<ul>
    <li><a href="#" onclick="setActiveStyleSheet('gray'); return false;" title="Gray Theme"><img src="images/btngray.gif" alt="Gray Theme" /></a></li>
    <li><a href="#" onclick="setActiveStyleSheet('red'); return false;" title="Red Theme"><img src="images/btnred.gif" alt="Red Theme" /></a></li>
    <li><a href="#" onclick="setActiveStyleSheet('blue'); return false;" title="Blue Theme"><img src="images/btnblue.gif" alt="Blue Theme" /></a></li>
    <li><a href="#" onclick="setActiveStyleSheet('orange'); return false;" title="Organe Theme"><img src="images/btnorange.gif" alt="Orange Theme" /></a></li>
</ul>
</div></h3>

<%@page import="Group.*, GroupIO.*, java.text.*"%>
        <%    
        String gname = request.getParameter("gname");
        String description = request.getParameter("description");
        String fname = request.getParameter("fname");
        String lname = request.getParameter("lname");
        String email = request.getParameter("email");
        
        Group group = new Group(gname, description, fname, lname, email);
        GroupIO.addGroupRecord(group, "C:/JavaTest/group.txt");
        %>

    <h4>Verify Group Information</h4>
    <p><strong>Group Name:</strong><%= group.getGname() %></p>
    <p><strong>Description:</strong><%= group.getDescription() %></p>
    <p><strong>Administator Name:</strong><%= group.getFname() %> <%= group.getLname() %></p>
    <p><strong>Email:</strong><%= group.getEmail() %></p>
          
        <form action="myGroup.jsp" method="post">
            <p><input type="submit" value="Finish"> </p>
        </form>



</div>

</div>

<div id="footer">
<ul>
<li><a href="index.jsp">Home</a> |  </li>
<li><a href="#">My Profile</a>|  </li>
<li><a href="#">My Calendar</a>|  </li>
<li><a href="myGroup.jsp">My Groups</a>|  </li>
<li><a href="#">Help</a></li>
</ul>
<p>Created by Yosemit - UGA MIT Students</p>
</div>

</body>
</html>
